package com.qf.entity;

import java.math.BigDecimal;

/**
 * @Author AzureSky_X
 * @Date 2020/11/19 16:16
 * @Version 1.0
 */
public class OrderDetail {
    private Integer id;
    private Integer oid;//订单id
    private Integer gid;//商品id
    private Good good;//商品对象
    private Integer num;//商品数量
    private BigDecimal sum;//商品小计

    public Good getGood() {
        return good;
    }

    public void setGood(Good good) {
        this.good = good;
    }

    @Override
    public String toString() {
        return "OrderDetail{" +
                "id=" + id +
                ", oid=" + oid +
                ", gid=" + gid +
                ", num=" + num +
                ", sum=" + sum +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getOid() {
        return oid;
    }

    public void setOid(Integer oid) {
        this.oid = oid;
    }

    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public BigDecimal getSum() {
        return sum;
    }

    public void setSum(BigDecimal sum) {
        this.sum = sum;
    }

    public OrderDetail() {
    }
}
